public class demo3 {
    public static void main(String[] args) throws InterruptedException {

        new Thread("t"){
            @Override
            public void run() {
                super.run();
            }
        };

        long ajsn=6;
//        while(ajsn-->0){
//            System.out.println(666);
//            Thread.sleep(100);
//        }
        Object doi=new Object();
        synchronized (doi){
            Thread.sleep(10000);
        }

        synchronized (test.class){
            for (int i = 0; i < 6; i++) {
                Thread.sleep(500);
                System.out.println(i);
                synchronized (doi){
                    break;
                }
            }
        }

        System.out.println("165555555544455555");


    }

    private static void sdj() {
        System.out.println(123);
    }
}
